package com.hyzx.qbasic.admin.model.vo.req.admin;

import com.hyzx.qbasic.admin.model.dto.ProcessTaskNode;
import com.hyzx.qbasic.admin.model.vo.req.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by 黄江华 on 2018/11/23
 */

@ApiModel
public class AddProcessDefinitionReq extends BaseRequest {

    @ApiModelProperty("流程名称")
    @NotEmpty(message = "流程名称不能为空")
    @Length(max = 64, message = "流程名称不能超过64个字符")
    private String processDefinitionName;

    @ApiModelProperty("流程分类")
    @NotNull(message = "流程分类不能为空")
    private Integer processCategoryId;

    @ApiModelProperty("流程总结点数")
    @NotNull(message = "流程总节点数不能为空")
    private Byte processNodes;

    @ApiModelProperty("流程节点列表")
    private List<ProcessTaskNode> taskNodes;

    public String getProcessDefinitionName() {
        return processDefinitionName;
    }

    public void setProcessDefinitionName(String processDefinitionName) {
        this.processDefinitionName = processDefinitionName;
    }

    public Integer getProcessCategoryId() {
        return processCategoryId;
    }

    public void setProcessCategoryId(Integer processCategoryId) {
        this.processCategoryId = processCategoryId;
    }

    public Byte getProcessNodes() {
        return processNodes;
    }

    public void setProcessNodes(Byte processNodes) {
        this.processNodes = processNodes;
    }

    public List<ProcessTaskNode> getTaskNodes() {
        return taskNodes;
    }

    public void setTaskNodes(List<ProcessTaskNode> taskNodes) {
        this.taskNodes = taskNodes;
    }
}
